package com.xxl.job.core.biz.model;

import java.io.Serializable;
import java.util.List;

/**
 * 子任务信息返回
 * @author xuxueli 2015-12-4 16:32:31
 * @param <T>
 */
public class JobReturnT<T> extends ReturnT<T> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -249840788319921085L;
	
	public static final JobReturnT<String> SUCCESS = new JobReturnT<String>(null);
	public static final JobReturnT<String> FAIL = new JobReturnT<String>(FAIL_CODE, null);
	
	private List<ChildJobParam> childJobs;

	public JobReturnT(){}
	
	public JobReturnT(int code, String msg) {
		super(code,msg);
	}
	
	public JobReturnT(T content) {
		super(content);
	}
	
	public List<ChildJobParam> getChildJobs() {
		return childJobs;
	}
	public void setChildJobs(List<ChildJobParam> childJobs) {
		this.childJobs = childJobs;
	}
	@Override
	public String toString() {
		return "ReturnT [code=" + super.getCode() + ", msg=" + super.getMsg() + ", content=" + super.getContent() + ", childJobs=" + childJobs + "]";
	}

}
